package com.xjscrm.server.service.filterrule;

import com.xjscrm.server.req.filterrule.CustomerBasicInfoExcludeFilterReq;
import com.xjscrm.server.req.filterrule.CustomerTimeExcludeFilterReq;
import com.xjscrm.server.req.filterrule.CustomerTagsExcludeFilterReq;
import com.xjscrm.server.service.filterrule.impl.CustomerBasicInfoExcludeFilter;
import com.xjscrm.server.service.filterrule.impl.CustomerTagsExcludeFilter;
import com.xjscrm.server.service.filterrule.impl.CustomerTimeExcludeFilter;

public interface CustomerCommonFilterService {

    default Boolean excludeFilter(CustomerTagsExcludeFilterReq customerTagsExcludeFilterReq, CustomerTimeExcludeFilterReq customerTimeExcludeFilterReq, CustomerBasicInfoExcludeFilterReq customerBasicInfoExcludeFilterReq){
        return CustomerTagsExcludeFilter.getInstance().filter(customerTagsExcludeFilterReq)
                || CustomerTimeExcludeFilter.getInstance().filter(customerTimeExcludeFilterReq)
                || CustomerBasicInfoExcludeFilter.getInstance().filter(customerBasicInfoExcludeFilterReq);
    }

}
